from django.test import TestCase

# Create your tests here.
from apis.models import Student, School

"""
    django 测试用例
    启动测试 python manage.py test api
"""


class ApisTests(TestCase):

    def test_xxx(self):
        """
        was_published_recently() returns False for questions whose pub_date
        is in the future.
        """
        sc = School(name='xxx', desc="xxx")
        sc.save()
        print('user.id---1', sc.id)
        self.assertGreater(sc.id, 0)
